#include "UdpServer.hpp"
#include <memory>

// ./server 8080
int main(int argc, char* argv[])
{
    if(argc != 2)
    {
        std::cout << "Usage:\n\t" << argv[0] << " [port]\n";
        return ARGU_ERROR;
    }

    uint16_t port = std::stoi(argv[1]);
    std::unique_ptr<UdpServer> pus(new UdpServer(port));
    pus->Init();
    pus->Start();

    return 0;
}